﻿package toolbar.font {
	import flash.display.Sprite;
	
	public class ColorDisplay extends Sprite {
		public function ColorDisplay():void {
			super();
			init();
		}
		
		private function init():void {
			x = 4;
			y = 16;
			drawSquare();
		}
		
		public function drawSquare(color:uint = 0):void {
			graphics.clear();
			graphics.beginFill(color, 1);
			graphics.drawRect(0, 0, 16, 4);
			graphics.endFill();
		}
	}
}